from applications.extensions import ma
from marshmallow import fields
from applications.models import Dept


# police的序列化类
class PoliceOutSchema(ma.Schema):
    id = fields.Integer()
    name = fields.Str()
    state = fields.Integer()
    score = fields.Integer()
    department = fields.Str()
    condition = fields.Str()
    pressure_category = fields.Str()
    registration_time = fields.Str()
    update_time_time = fields.Str()


class PoliceRecordSchema(ma.Schema):
    id = fields.Integer()
    police_id = fields.Integer()
    class_id = fields.Integer()
    score = fields.Integer()
    update_time_time = fields.Str()